import request from '@/utils/request'

// 根据 timerId 触发处理并插入规则预警日志
export function processRuleswarnlogByTimerId(timerId) {
  return request({
    url: `/znjc/ruleswarnlog/process/${timerId}`,
    method: 'post'
  })
}



// 查询规则预警日志列表
export function listRuleswarnlog(query) {
  return request({
    url: '/znjc/ruleswarnlog/list',
    method: 'get',
    params: query
  })
}

// 查询规则预警日志详细
export function getRuleswarnlog(logId) {
  return request({
    url: '/znjc/ruleswarnlog/' + logId,
    method: 'get'
  })
}

// 新增规则预警日志
export function addRuleswarnlog(data) {
  return request({
    url: '/znjc/ruleswarnlog',
    method: 'post',
    data: data
  })
}

// 修改规则预警日志
export function updateRuleswarnlog(data) {
  return request({
    url: '/znjc/ruleswarnlog',
    method: 'put',
    data: data
  })
}

// 删除规则预警日志
export function delRuleswarnlog(logId) {
  return request({
    url: '/znjc/ruleswarnlog/' + logId,
    method: 'delete'
  })
}
